import request from '@/utils/request'

// 查询用户列表
export function userList(query) {
  return request({
    url: '/api/v1/admin/permission/user/list',
    method: 'get',
    params: query
  })
}

// 新增用户
export function userAdd(data) {
  return request({
    url: '/api/v1/admin/permission/user/add',
    method: 'post',
    data: data
  })
}

// 编辑用户
export function userEdit(data) {
  return request({
    url: '/api/v1/admin/permission/user/edit',
    method: 'post',
    data: data
  })
}

// 删除用户
export function userRemove(id) {
  return request({
    url: '/api/v1/admin/permission/user/remove',
    method: 'delete',
    data: id
  })
}